package czt.ocr.mapper;

import czt.ocr.entity.ControlArea;
import czt.ocr.entity.Substation;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author czt
 * @version 1.0
 * @since 2025/4/8
 */
@Mapper
public interface SubstationMapper {

    @Insert("insert into substation values (#{num},#{mrid},#{name},#{controlArea})")
    void insertSubstation(Substation substation);

    @Select("select * from substation")
    List<Substation> getSubstations();
}
